package user;

import book.BookList;
import opera.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2022-12-05
 * Time: 15:29
 */
public abstract class User {
    protected String name;
    //将IOperation接口导入，实现下面的Operation方法
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int Menu();

    public void DoWork(int choice, BookList bookList) {
        this.iOperations[choice].Work(bookList);
    }
}
